package com.cnebula.openapi.auth.exception;

import com.cnebula.openapi.auth.vo.ResponseResult;

public class ClientAppServiceRequestFail extends Exception{
	
	private static final long serialVersionUID = 1L;
	
	String failMessage;
	
	public ClientAppServiceRequestFail(String message) {
		super(message);
		failMessage = message;
	}

	@Override
	public String getMessage() {
		super.getMessage();
		String code = ErrorInfo.APP_CLIENTKEY_SERVICE_REQ_FAIL;
		String errorMsg = String.format(ErrorInfo.APP_CLIENTKEY_SERVICE_REQ_FAIL_INFO, failMessage); ;
		ResponseResult rst = new ResponseResult(code, errorMsg);
		
		return rst.toString();
	}
}
